package com.qyer.lxp.model.product.normal;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.List;

/**
 * Created by jiangping on 16/5/18.
 */
@XmlRootElement(name = "product-pick-info")
@XmlAccessorType(XmlAccessType.FIELD)
public class ProductPickInfo implements Serializable{
    private static final long serialVersionUID = 1043305835898883230L;

    /**
     * 产品 code
     */
    private String productCode;

    /**
     * 接地点集合
     */
    @XmlElementWrapper(name = "picks")
    @XmlElement(name = "pick-drop-model")
    private List<PickDropModel> pickList;

    /**
     * 送地点集合
     */
    @XmlElementWrapper(name = "drops")
    @XmlElement(name = "pick-drop-model")
    private List<PickDropModel> dropList;

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public List<PickDropModel> getPickList() {
        return pickList;
    }

    public void setPickList(List<PickDropModel> pickList) {
        this.pickList = pickList;
    }

    public List<PickDropModel> getDropList() {
        return dropList;
    }

    public void setDropList(List<PickDropModel> dropList) {
        this.dropList = dropList;
    }

    @Override
    public String toString() {
        return "ProductPickInfo{" +
                "productCode='" + productCode + '\'' +
                ", pickList=" + pickList +
                ", dropList=" + dropList +
                '}';
    }
}
